#!/bin/bash
devices=( `motelist | grep -o ".dev/.*[0-9]"` )
make telosb
for ((i=0;i<${#devices[@]};i++));do
	make telosb reinstall,$i bsl,${devices[i]}
done;
